//
//  NSDate+RBExtension.h
//  Budejie
//
//  Created by 华杨科技 on 2017/11/27.
//  Copyright © 2017年 饶波. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSDate (RBExtension)

#pragma mark - 一:日期比较:返回日期比较对象
- (NSDateComponents *)rb_intervalToDate:(NSDate *)date;

- (NSDateComponents *)rb_intervalToNow;

/**判断是不是今年*/
- (BOOL)rb_isThisYear;

/**判断日期为今天*/
- (BOOL)rb_isToday;

/**判断日期为昨天*/
- (BOOL)rb_isYesterday;

@end
